package com.lcxw.hxzbapi.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lcxw.hxzbapi.entity.pojo.SvCommentLike;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SvCommentLikeMapper extends BaseMapper<SvCommentLike> {

    @Select("SELECT COUNT(*) FROM ywpd_shortvideocommentlike WHERE commentId = #{commentId} and userId = #{userId} limit 1")
    int getIsLike(@Param("commentId") int commentId, @Param("userId") long userId);
}
